package com.web.dao.impl;

import com.web.dao.StudentsDAO;
import com.web.entity.Student;
import com.web.util.JDBCUtils;

import java.util.List;

/**
 * @author lenovo
 * @Description
 * @Date2025-3-1 14:12
 */
public class StudentsDAOImpl implements StudentsDAO {
    @Override
    public List<Student> searchStudentsByName(String keyword){
        String sql = "select * from student_s where name like ?";
        return JDBCUtils.query(Student.class,sql,"%"+keyword+"%");

    }

}
